package com.haixiaoke.saas.repository.pojo;

import com.haixiaoke.saas.repository.core.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 公寓管理退租记录对象 biz_house_quit_lease
 *
 * @author qixi
 * @date 2023-04-18
 */
@Data
public class HouseQuitLease extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 已申请
     */
    public static final Integer QUIT_LEASE_STATUS_HAVE_APPLIED = 1;
    /**
     * 租户已验房
     */
    public static final Integer QUIT_LEASE_STATUS_TENANT_CHECK = 2;
    /**
     * 商家已验房
     */
    public static final Integer QUIT_LEASE_STATUS_MERCHANT_CHECK = 3;
    /**
     * 未结清
     */
    public static final Integer QUIT_LEASE_STATUS_OUTSTANDING = 4;
    /**
     * 已结清
     */
    public static final Integer QUIT_LEASE_STATUS_SETTLED = 5;
    /**
     * 已完成
     */
    public static final Integer QUIT_LEASE_STATUS_COMPLETED = 6;


    /**
     *  退租类型：正常退租
     */
    public static final Integer QUIT_LEASE_TYPE_NORMAL_CHECK_OUT = 1;
    /**
     * 退租类型：提前退租
     */
    public static final Integer QUIT_LEASE_TYPE_ADVANCE_CHECK_OUT = 2;


    /**
     * 订单id
     */
    @NotNull(message = "订单id不得为空")
    private String orderId;

    /**
     * 退租id
     */
    private Long quitLeaseId;

    /**
     * 房屋id
     */
    @NotNull(message = "房屋id不得为空")
    private String houseId;

    /**
     * 租户id
     */
    private String tenantId;

    /**
     * 租户名称
     */
    private String tenantName;

    /**
     * 租户手机
     */
    private String tenantPhone;



    /**
     * 退租状态：1已申请  2租户已验房 3商家已验房 4未结清 5已结清 6已完成
     */
    private Integer quitLeaseStatus;

    /**
     * 验房单id
     */
    private Long inspectionId;

    /**
     * 验房结果：1正常 2损坏
     */
    private Integer inspectionResult;

    /**
     * 未缴账单金额
     */
    private Long unpaidBills;

    /**
     * 押金
     */
    private Long cashPledge;

    /**
     * 其他费用
     */
    private Long otherCost;

    /**
     * 结算费用
     */
    private Long settlementCost;

    /**
     * 退租类型：1正常退租 2提前退租
     */
    private Integer quitLeaseType;

    /**
     * 完成时间
     */
    private Date finishTime;

    /** 小区id */
    private String residenceCommunityId;
    /** 楼栋 */
    private Long buildingNum;
    /** 单元 */
    private Long unit;
    /** 房号 */
    private String roomNumber;
    /**楼层*/
    private Long floor;
    /**组织id*/
    private Long orgId;
}
